<script setup lang="ts">
// 1.定义匿名中间件
definePageMeta({
    middleware: [
        function (to, from) {
            console.log(to, from);
        },
        "catch",
    ],
});
</script>

<template>
    <div>HowUseMiddleware page</div>
</template>

<style scoped lang="scss"></style>
